package com.crm.service.opportunityManager;

import com.crm.model.entity.opportunityManager.OpportunityCollaborator;
import com.crm.model.entity.opportunityManager.OpportunityDynamic;
import com.crm.model.vo.opportunityManager.OpportunityCollaboratorVO;
import com.crm.model.vo.opportunityManager.OpportunityDynamicVO;

import java.util.List;

/**
 * 商机动态
 */
public interface OpportunityDynamicDbService {

    /**
     * 商机管理-新增商机动态
     * @param opportunityDynamic 商机动态实体
     * @return
     */
    Boolean addOpportunityDynamic(OpportunityDynamic opportunityDynamic);

    /**
     * 查询商机状态是否存在
     * @param opportunityId 商机id
     * @return
     */
    List<OpportunityDynamic> selectByOpportunityId(String opportunityId,Integer operationMode);

    /**
     * 修改商机动态
     * @param opportunityDynamic 商机动态实体
     * @return
     */
    Boolean updateOpportunityDynamic(OpportunityDynamic opportunityDynamic);

    /**
     * 商机-商机详情-查询当前商机动态
     * @param opportunityId 商机id
     * @return
     */
    List<OpportunityDynamicVO> opportunityDynamicList(String opportunityId,String opportunityDynamicId);
}
